#pragma once

#include <iostream>
#include <fstream>
#include <time.h>

using namespace std;

class CTimer
{
public:
	CTimer(void);
	~CTimer(void);
	void Reset();
	void Start();
	void Stop();
	double GetCumulativeTime();
	double GetAverageTime();
	double GetElapsedTime();
	int   GetCount() { return m_nCount; }	
	void  Show(ofstream &fout, char *timer);
	
public:
	double m_fCumulativeTime;
	double m_fElapsedTime;
	int   m_nCount;	
	double m_Freq;
	double m_Start;
    double m_End;    
};
